<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <!-- import CSS -->
    <link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.15.9/theme-chalk/index.css">
    <title>易装网_装修行业门户网站_优质装修资源整合平台_【易装网】</title>
    <style>
        body {
            font-size: 14px;
            font-family: 微软雅黑, "Microsoft Yahei", arial, 宋体, simsun;
            margin: 0;
            padding: 0;
            border: 0;
        }
        .top_a {
            width: 100%;
            height: 35px;
            position: relative;
            background-color: #f6f6f6;
        }
        .top_b {
            width: 100%;
            height: 80px;
            background-color: #fff;

        }
        .shouye {
            text-decoration: none
        }
        .el-header {
            width: 100%;
            background-color: #1b721b;
            position: fixed;
            z-index: 999;
        }
        .a {
            width: 100%;
            background-color: #282c30;
            text-align: center;
        }
        div {
            display: block;
        }
        a{
            color: #282c30;
            text-decoration: none;
        }
        .a > div {
            overflow: hidden;
            margin-top: 23px;
        }
        .weibu {
            color: white;
            margin-right: 20px;
        }
        .info_web {
            color: #6b6b6b;
        }
        .dis_detail {
            width: 400px;
            height: 150px;
            position: relative;
            top: -150px;
        }
        .q {
            color: white;
        }
    </style>
</head>
<body>
<div id="app">
    <el-container>
        <el-header >
            <div class="top_b" style="height: 60px">
                <el-menu mode="horizontal" background-color="#1b721b">
                    <el-menu-item index="1"><img src="imgs/易装网.png" style="width: 100%;height: 100%;"></el-menu-item>
                    <el-menu-item index="2"><a class="shouye" href="/HomePage.html">首页</a></el-menu-item>
                    <el-menu-item index="3"><a class="shouye" href="/HomePage.html">学装修</a></el-menu-item>
                    <el-submenu index="4">
                        <template slot="title"><a href="/learn.html">效果图</a></template>
                        <el-submenu v-for="(e,i) in effectpicCategoryArr" v-if="e.parentId==null" :index="'4-'+i">
                            <template slot="title"><a :href="'/learn.html?pinyin='+e.pinyin">{{e.title}}</a></template>
                            <el-menu-item v-for="(ine,o) in effectpicCategoryArr" v-if="ine.parentId==e.id" :index="'4-'+i+'-'+o">
                                <a :href="'/learn.html?pinyin='+ine.pinyin">{{ine.title}}</a></el-menu-item>
                        </el-submenu>
                    </el-submenu>
                    <el-menu-item index="5"><a class="shouye" href="/shop.html">装修材料</a></el-menu-item>
                    </el-menu-item>
                    <el-menu-item index="6"><a class="shouye" href="/designer.html">设计师信息</a></el-menu-item>
                    <div class="login">
                        <div v-if="isLogin" style="float: right;position: relative;font-size: 13px;color: #999;
                                margin-top: 20px">
                            <h3 style="margin: 0">欢迎回来:<i style="color: #0aa1ed">{{user.nickname}}</i>,
                                <a href="javascript:void(0)" @click="logout()">退出登录</a></h3>
                        </div>
                        <div v-else>
                            <a style="float: right;position: relative;font-size: 13px;color: #999;
                        margin-top: 23px;margin-right:15px" href="/login.html">登录/注册</a>
                        </div>
                    </div>
                </el-menu>
            </div>
        </el-header>
        <el-main style="margin-top: 45px;z-index: 1">
            <!--走马灯-->
            <div style="width: 1450px;margin: 0 auto">
                <el-carousel trigger="click" height="400px">
                    <el-carousel-item v-for="b in bannerArr">
                        <a :href="b.url">
                            <img :src="b.image" width="100%"></a>
                    </el-carousel-item>
                </el-carousel>
            </div>
            <!--走马灯结束-->
            <!--卡片-->
            <div>
                <el-row gutter="2">
                    <el-col span="6" v-for="p in cardArr">
                        <el-card style="text-align: center">
                            <b style="font-size: 30px;">{{p.title}}</b>
                            <p style="color: #a5a5a5">{{p.text}}</p>
                        </el-card>
                    </el-col>
                </el-row>
            </div>
            <!--卡片结束-->
            <div>
                asd

            </div>
            <div>
                1

            </div>
            <div>
                1

            </div>
            <div>
                1

            </div>
            <div>
                1

            </div>
            <div>
                1

            </div>
            <div>
                1

            </div>
            <div>
                1

            </div>
            <div>
                1

            </div>
            <div>
                1

            </div>
            <div>
                1

            </div>
            <div>
                1

            </div>
            <div>
                1

            </div>
            <div>
                1

            </div>
            <div>
                1

            </div>
            <div>
                1

            </div>
            <div>
                1

            </div>
            <div>
                1

            </div>
            <div>
                1

            </div>
            <div>
                1

            </div>
            <div>
                1

            </div>
            <div>
                1

            </div>
            <div>
                1

            </div>
            <div>
                1

            </div>
            <div>
                1

            </div>
            <div>
                1

            </div>
            <div>
                1

            </div>
            <div>
                1

            </div>
            <div>
                1

            </div>

        </el-main>
        <el-footer style="background-color: #282c30;height: 100%">
            <div class="a" style="margin: 0 auto">
                <div>
                    <a class="weibu" href="" target="_blank"><span>关于我们</span></a>
                    <a class="weibu" href="" target="_blank"><span>帮助中心</span></a>
                    <a class="weibu" href="" target="_blank"><span>联系我们</span></a>
                    <a class="weibu" href="" target="_blank"><span>VIP服务</span></a>
                </div>
                <el-row gutter="10">
                    <el-col span="6" >
                        <div style="margin: 0 auto">
                            <el-row gutter="10">
                                <el-col span="8">
                                    <img width="100" height="100" src="https://static.zhuangyi.com/css/index/img/ewm_m.png">
                                    <p class="q">手机版</p></el-col>
                                <el-col span="8">
                                    <img width="100" height="100" src="https://static.zhuangyi.com/css/index/img/ewm_xcx.jpg">
                                    <p class="q">小程序</p></el-col>
                                <el-col span="8">
                                    <img width="100" height="100" src="https://static.zhuangyi.com/css/index/img/ewm_wx.png">
                                    <p class="q">公众号</p></el-col>
                            </el-row>
                        </div>
                    </el-col>
                    <el-col span="18" >
                        <div class="info_web">
                            <p>Copyright © 2009-2023 zhuangyi.com All Rights Reserved</p>
                            <p>免责声明：本网站部分内容由用户自行上传，如权利人发现存在误传其作品情形，请及时与本站联系</p>
                            <p>河南车前草计算机科技有限公司 版权所有</p>
                        </div>
                    </el-col>
                </el-row>
            </div>
        </el-footer>
    </el-container>
</div>
</body>
<!--引入axios和vue框架文件-->
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>
<!-- import Vue before Element -->
<script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
<!-- import JavaScript -->
<script src="https://cdn.staticfile.org/element-ui/2.15.9/index.min.js"></script>
<script>
    let v = new Vue({
        el: '#app',
        data: function () {
            return {
                cardArr:[{title:"零元设计",text:"量房,出方案,做预算"},
                    {title:"零元设计",text:"量房,出方案,做预算"},
                    {title:"零元设计",text:"量房,出方案,做预算"},
                    {title:"零元设计",text:"量房,出方案,做预算"}],
                bannerArr:[],
                isLogin:false,
                user:{},
                effectpicCategoryArr:[]
            }
        },
        methods: {
            //退出登录
            logout(){
                if(confirm("确认退出")){
                    axios.get("/logout").then(function (response) {
                        v.isLogin=false;
                    })
                }
            }
        },created:function () {
            //获取轮播图
            axios.get("/banner/select1").then(function (response) {
                v.bannerArr=response.data;
            })
            //获取当前用户对象
            axios.get("/currentUser").then(function (response) {
                v.user=response.data;
                v.isLogin=!response.data=="";
            })
            axios.get("/effectpicCategory/homepageSelect").then(function (response){
                v.effectpicCategoryArr=response.data;
            })
        }
    })
</script>
</html>